home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr05 / makecard.zip / MAKECARD.DOC < prev    next >
Text File  |  1993-07-06  |  2KB  |  46 lines

  1. MAKECARD.BAS creates a Windows 3.1 Cardfile from an ASCII text file.
  2.  
  3. Input consists of an ASCII text file with the following characteristics:
  4.  
  5.         .  Index lines (the headers on the Cardfile cards) are marked
  6.            by an asterisk (*) in the first column. The asterisk is cut
  7.            from the line before the cardfile is assembled.
  8.  
  9.         .  There are up to 11 text lines following the index line.  If
  10.            there are more than 11 lines, a warning appears and any extra
  11.            lines are ignored.
  12.  
  13.         .  All lines are a maximum of 40 characters long.
  14.  
  15.         Such a file can be created with any word processor capable
  16.         of saving files as ASCII text.  For example, in WordPerfect 5.1,
  17.         you specify a left margin of 0 and a right margin of 4.5 to get
  18.         a 40 character line, assuming that 10-pitch Courier is your
  19.         base font.  Edit your file, then save it as DOS text.
  20.  
  21. The program is written as a QBASIC program.  It currently is set up
  22. to run a maximum of 100 cards (1100 text lines), but this can be  
  23. changed to whatever is needed.  To run MAKECARD, copy it to whatever
  24. directory includes QBASIC (usually the DOS directory).  Start it by
  25. clicking on it in DOS Shell or Windows File Manager or other launcher
  26. that recognized a .BAS file as a QBASIC program.  Or, start it by 
  27. giving the following command from the DOS prompt:
  28.  
  29.       QBASIC /RUN MAKECARD
  30.  
  31. The program will ask for the input file (a sample called NASA.TXT
  32. is included), the output file (should be given the extension .CRD),
  33. and whether you want the program to sort the index lines.  NOTE:
  34. the program does not check to see if the output file name already
  35. exists, so beware of overwriting an existing file inadvertently.
  36.  
  37. That's it!  I wrote this little routine to speed some file work I
  38. was doing.  Please pardon the utter lack of structure to the
  39. program, or use it as a negative example with students.  No claims 
  40. are made, nor any warranties given.  
  41.  
  42. Let me know if you found it at all useful.  Send mail to:
  43.  
  44. Bruce Clouette 71053,1652 on CompuServe 
  45.                (INTERNET: 71053.1652.compuserve.com)
  46.